package com.telit.android.feign;

import com.telit.android.feign.impl.ThirdFeignClientFallBack;
import com.telit.common.entity.DataReturn;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @Auther amy
 * @Describe 第三方服务
 */
@FeignClient(name = "fire-anhui-third", fallback = ThirdFeignClientFallBack.class)
public interface ThirdFeignClient {

    @GetMapping(value = "/third/geo-pk-fdi-rd/selectMjByYjidAndCun",produces = "application/json;charset=UTF-8")
    @ApiOperation("根据村code和热点编号查询热点面积")
    DataReturn selectMjByYjidAndCun(@RequestParam("dayFlag") Integer dayFlag, @RequestParam("cunCode") String cunCode,
                                    @RequestParam("yjid") String yjid, @RequestParam("date") String date);
}
